home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "AddIn"
- '--------------------------------------------------------------------------
- ' File: ADDIN.BAS
- '
- ' This file is part of the 'Stinga sgWindow Wizard' project.
- ' Copyright (C) 1998 Stinga
- ' All rights reserved.
- '
- '--------------------------------------------------------------------------
-
- Option Explicit
- Declare Function WritePrivateProfileString& Lib "Kernel32" Alias "WritePrivateProfileStringA" (ByVal AppName$, ByVal KeyName$, ByVal keydefault$, ByVal FileName$)
-
- '====================================================================
- 'this sub should be executed from the Immediate window
- 'in order to get this app added to the VBADDIN.INI file
- 'you must change the name in the 2nd argument to reflecty
- 'the correct name of your project
- '====================================================================
- Sub AddToINI()
- Dim ErrCode As Long
- ErrCode = WritePrivateProfileString("Add-Ins32", "sgWindowWizard.Connect", "0", "vbaddin.ini")
- End Sub
-
-